package com.bawei.hgshop.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 *  sku 
 * @时间 2021-1-12 9:15:02
 *
 */
public class SkuVo  extends Sku{

	/**
	 *  
	 */
	private static final long serialVersionUID = -4165191605125649769L;
	
	int page=1;
	int pageSize=10;
	
	// 范围的字段  数据可能是 price cost_price market_price
	private String rangeField;
	private Integer maxValue;
	private Integer minValue;
	
	// 模糊查询的值
	private String fuzzleVale;

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public String getRangeField() {
		return rangeField;
	}

	public void setRangeField(String rangeField) {
		this.rangeField = rangeField;
	}

	public Integer getMaxValue() {
		return maxValue;
	}

	public void setMaxValue(Integer maxValue) {
		this.maxValue = maxValue;
	}

	public Integer getMinValue() {
		return minValue;
	}

	public void setMinValue(Integer minValue) {
		this.minValue = minValue;
	}

	public String getFuzzleVale() {
		return fuzzleVale;
	}

	public void setFuzzleVale(String fuzzleVale) {
		this.fuzzleVale = fuzzleVale;
	}

	

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((fuzzleVale == null) ? 0 : fuzzleVale.hashCode());
		result = prime * result + ((maxValue == null) ? 0 : maxValue.hashCode());
		result = prime * result + ((minValue == null) ? 0 : minValue.hashCode());
		result = prime * result + page;
		result = prime * result + pageSize;
		result = prime * result + ((rangeField == null) ? 0 : rangeField.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		SkuVo other = (SkuVo) obj;
		if (fuzzleVale == null) {
			if (other.fuzzleVale != null)
				return false;
		} else if (!fuzzleVale.equals(other.fuzzleVale))
			return false;
		if (maxValue == null) {
			if (other.maxValue != null)
				return false;
		} else if (!maxValue.equals(other.maxValue))
			return false;
		if (minValue == null) {
			if (other.minValue != null)
				return false;
		} else if (!minValue.equals(other.minValue))
			return false;
		if (page != other.page)
			return false;
		if (pageSize != other.pageSize)
			return false;
		if (rangeField == null) {
			if (other.rangeField != null)
				return false;
		} else if (!rangeField.equals(other.rangeField))
			return false;
		return true;
	}
	
	
	
	
	
}
